import { createRouter, createWebHistory } from 'vue-router'
/* import HomeView from '../views/HomeView.vue' */
import container from '../components/container/src/index.vue'
import aboutView from '@/views/AboutView.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      component: container,
      hidden: true,
      children: [
        {
          path: '/',
          component: aboutView
        },
        {
          path: '/user',
          name: 'user',
          component: () => import('@/views/user/index.vue'),
          hidden: true,
          meta: { hidden: true }
        },
        {
          path: '/appointment',
          name: '预约管理',
          component: () => import('@/views/appointment/index.vue'),
          hidden: true
        },
        {
          path: '/maintain',
          name: '维修管理',
          component: () => import('@/views/maintain/index.vue'),
          hidden: true

        },
        {
          path: '/archives',
          name: '档案管理',
          component: () => import('@/views/archives/index.vue'),
          hidden: true

        },
        {
          path: '/flex',
          name: '盒子布局',
          component: () => import('@/views/layout/flex/index.vue'),
          hidden: true

        },
        {
          path: '/grid',
          name: '网格布局',
          component: () => import('@/views/layout/grid/index.vue'),
          hidden: true

        }
      ]
    }
  ]
})

export default router
